Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve component resources cleanup #111

Merged
merged 5 commits into from
Aug 24, 2021
Merged

Improve component resources cleanup #111

merged 5 commits into from
Aug 24, 2021

Conversation

tterb
Copy link
Contributor

@tterb tterb commented Aug 13, 2021

Description

These changes modify the cleanup functionality of the CommentCount, DiscussionEmbed, Recommendations components to also remove resources that are added by the Disqus scripts to prevent duplicated resources on navigation.
These changes also add minimal navigation to the example site to reproduce and test the unmount behavior.

Motivation and Context

Fixes #108

How Has This Been Tested?

Reproduced on the example site and updated unit-tests

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • All new and existing tests passed.

@tterb tterb self-assigned this Aug 13, 2021
@tterb tterb merged commit 2c3441c into master Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<link ... in Head Tag Not Cleaned
1 participant